package com.example.lib_log.utils

import com.example.lib_log.Logger
import com.example.lib_log.LoggerLevel
import com.example.lib_log.LoggerStrategy

class LoggerUtils {
    companion object{
        private val logger = Logger.Builder()
            .setLevel(LoggerLevel.Error)
            .setLoggerType(LoggerStrategy.LOGCAT)
            .isDebug(true)
            .setTAG("[Club::]")
            .build()

        fun d(Tag:String,log:String){
            logger.d(Tag,log)
        }

        /**
         * 输出Warn log
         */
        fun w(Tag:String,log:String){
            logger.w(Tag,log)
        }

        /**
         * 输出Verbose log
         */
        fun v(Tag:String,log:String){
            logger.v(Tag,log)
        }

        /**
         * 输出Error log
         */
        fun e(Tag:String,log:String){
            logger.e(Tag,log)
        }
        /**
         * 输出Info log
         */
        fun i(Tag:String,log:String){
            logger.i(Tag,log)
        }
    }
}